package com.example.easybuy.pojo;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.stereotype.Component;

@Component
public class ProductsManage {
    //商品id
    private int id;
    //商品名
    private String name;
    //产品描述
    private String describe;
    //金额
    private double price;
    //库存
    private int stock;
    //分类一
    private int classifyone;
    //分类二
    private int classifytwo;
    //分类三
    private int classifythree;
    //文件名
    private String fileName;
    //是否删除？1：删除、0：未删除
    private int isDelete;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDeescribe() {
        return describe;
    }

    public void setDeescribe(String deescribe) {
        this.describe = deescribe;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getClassifyone() {
        return classifyone;
    }

    public void setClassifyone(int classifyone) {
        this.classifyone = classifyone;
    }

    public int getClassifytwo() {
        return classifytwo;
    }

    public void setClassifytwo(int classifytwo) {
        this.classifytwo = classifytwo;
    }

    public int getClassifythree() {
        return classifythree;
    }

    public void setClassifythree(int classifythree) {
        this.classifythree = classifythree;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "ProductsManage{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", describe='" + describe + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", classifyone=" + classifyone +
                ", classifytwo=" + classifytwo +
                ", classifythree=" + classifythree +
                ", fileName='" + fileName + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}
